import add from './js/add';
import "./css/index.css";
import "./css/index.less";

//图片直接用import模块引到入口文件
import sunglass from "./img/02.png";
import hotport from "./img/01.jpg";

//调用add方法
add(1, 2);


//创建眼镜的图片并插入到页面
const sunglassImg = new Image();
const hotportImg = new Image();
sunglassImg.src = sunglass;
hotportImg.src = hotport;
document.body.appendChild(sunglassImg);
document.body.appendChild(hotportImg);